import request from '@/utils/request'

export function listplanHead(query) {
  return request({
    url: '/quality/planHead/list',
    method: 'get',
    params: query
  })
}

export function createplanHead(data) {
  return request({
    url: '/quality/planHead/create',
    method: 'post',
    data
  })
}

export function readplanHead(data) {
  return request({
    url: '/quality/planHead/get/' + data.id,
    method: 'get'
  })
}

export function updateplanHead(data) {
  return request({
    url: '/quality/planHead/update',
    method: 'post',
    data
  })
}

export function deleteplanHead(data) {
  return request({
    url: '/quality/planHead/delete/' + data.fbillno,
    method: 'delete'
  })
}

export function listqualityEqtByFpointNo(query) {
  return request({
    url: '/quality/planHead/listqualityEqtByFpointNo/' + query,
    method: 'get'
  })
}

export function sendQualityEqtOrderToMQTT(query) {
  return request({
    url: '/smartPhone/sendQualityEqtOrderToMQTT',
    method: 'get',
    params: query
  })
}

